package com.endurance.factory;

import com.endurance.template.AbstractPayCallbackTemplate;
import com.endurance.utils.SpringUtils;

/**
 * @Author: sunlin
 * @Date: 2024-05-09 9:24
 * @Version: 1.0
 * @Description:
 */
public class PayFactory {

    public static AbstractPayCallbackTemplate getPayService(String templateId) {
        AbstractPayCallbackTemplate payService = (AbstractPayCallbackTemplate) SpringUtils.getBean(templateId);
        return payService;
    }

}
